package com.haofengsoft.scce.common.config;

import java.io.Serializable;

public class CommonConfig implements Serializable {

	/**
     *
     */
	private static final long serialVersionUID = 1L;
	public static final String DATABASE_NAME = "GUANGYOUBI";
	public static final String SHJI_PATH = android.os.Environment
			.getDataDirectory().getAbsolutePath() + "/" + DATABASE_NAME;
	public static final String DATABASE_PATH = android.os.Environment
			.getExternalStorageDirectory().getAbsolutePath()
			+ "/"
			+ DATABASE_NAME;// 路径

	public static final String DATA_FILE_PATH = existSDCard() ? DATABASE_PATH
			: SHJI_PATH;
	// public static final String
	// DATE_FILE_USER_PATH=DATA_FILE_PATH+"/"+UserCache.getInstance().getUser(ManageApplication.getInstance()).getUid();
	/**
	 * ****存放图片的文件夹*****************
	 */
	public static final String PROJECT_IMAGE_PATH = DATA_FILE_PATH + "/Image";// 路径
	public static final String PROJECT_VIDEO_PATH = DATA_FILE_PATH + "/Video";
	public static final String PROJECT_TEMP_PATH = DATA_FILE_PATH + "/Temp";
	public static final String PROJECT_CACHE_PATH = DATA_FILE_PATH + "/Cache";
	public static final String DATA_SAFETY_FILE = DATA_FILE_PATH + "/Data";

	// 判断SD卡是否存在
	public static boolean existSDCard() {
		if (android.os.Environment.getExternalStorageState().equals(
				android.os.Environment.MEDIA_MOUNTED)) {
			return true;
		} else {
			return false;
		}
	}

}
